import {createRouter,createWebHashHistory} from "vue-router";

const routes = [
    {
        //默认路径的name不要和其它相同
        path:"/",
        component:() => import ("../component/page21.vue"),
        meta:{
            title:"page2-1"
        }
    },
    {
        path:"/page1",
        name:"page1",
        component:() => import ("../component/page21.vue"),
        meta:{
            title:"page2-1"
        }
    },
    {
        path:"/page2",
        name:"page2",
        component:() => import ("../component/page22.vue"),
        meta:{
            title:"page2-2"
        }
    }
];

const router = createRouter({
    history:createWebHashHistory(),
    routes
});

export default router;